package org.yate.oa.utils;

/**
 * 任务类型
 * 
 * @author ZYY
 * 
 */
public enum TaskType {
	/**
	 * 错误
	 */
	error,
	/**
	 * 加班
	 */
	workovertime,
	/**
	 * 调休
	 */
	paidleave,
	/**
	 * 请假
	 */
	leave;

	public static TaskType valueof(String cmd) {
		try {
			return TaskType.valueOf(cmd);
		} catch (IllegalArgumentException e) {
			return TaskType.error;
		}
	}
}
